var SmartGrid = function(){
    // Init Facebook API
    FB.init({
        appId  : 187809174573734,
        status : true,
        cookie : true,
        xfbml  : true
    });
    
    // Public Methods
    return {
        // Login on Facebook
        login : function(){
            FB.login(function(response) {
                if (response.session) {
                    // user successfully logged in
                    window.location.reload();
                } else {
                    // user cancelled login
                }
            });
        }
    }
};
